package com.itheima.dao;

import com.itheima.pojo.Todo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

@Repository
public interface TodoMapper extends Mapper<Todo> {

    @Select("SELECT * FROM t_todo WHERE `text` LIKE CONCAT('%',#{keyWord},'%')")
    List<Map> findAllByKeyword(String keyword);
}
